#include<stdio.h>

int main(int argc,char *argv[])
{
	char ch = 0;

	if(argc!=2){
		printf("Usage:%s filepath\n",argv[0]);

	}

	FILE *fp = fopen(argv[1],"r+");
	if(!fp){
		perror("fopen");
		return -1;
	}

	//ch = fgetc(fp);
/*	while(1){
		//printf("%c",ch);
		ch = fgetc(fp);
		if(ch == EOF)
			break;
		printf("%c",ch);


	}
*/

	while((ch=fgetc(fp))!=EOF)
		printf("%c",ch);

	fclose(fp);
	return 0;


}